home *** CD-ROM | disk | FTP | other *** search
Text File | 1986-03-04 | 1.4 KB | 92 lines | [04] ASCII Text (0x0000) |
- %
- 3
- 12
- 1
- 38
- PRINTING NUMBERS AND CALCULATIONS
-
- In this lesson, you'll learn how
- to use the PRINT statement to
- make Applesoft BASIC display
- numbers and calculations on
- your screen.
- ^
- %
- 3
- 9
- 1
- 38
- Let's start with numbers. To
- print a number, you type PRINT,
- then a number, and then press
- RETURN. Watch this...
- ^
- &
- When you press RETURN, the
- computer prints whatever number
- you type after the PRINT
- statement.
- ^
- &
- Notice that the statement appears
- next to a prompt. It's called a
- prompt because it prompts you for
- information.
- ^
- &
- Now it's your turn. Type PRINT,
- follow it with a number, then
- press RETURN.
- ^
- %
- 3
- 10
- 1
- 38
- Pretty simple, eh? Simple, but
- not too useful. Now let's really
- put your Apple II to work and get
- it to print the results of some
- calculations.
- ^
- &
- You can use the computer to do
- calculations--such as addition,
- subtraction, multiplication, and
- division--and print the answer on
- the screen.
- ^
- &
- Let's say you don't have your
- pocket calculator handy, but
- need to find out how much 345
- plus 439 equals. To find out,
- you could type...
- ^
- %
- 3
- 9
- 1
- 38
- And the computer calculates
- the answer almost instantly!
- ^
- &
- Now it's your turn to try
- an addition problem (Don't
- forget to start with PRINT).
- ^
- %
- 3
- 12
- 1
- 38
- OK, now you know how to use
- the PRINT statement to print the
- results of calculations. But
- suppose you want to print words?
- Press RETURN to go to the lesson
- on printing words, or press ESC
- to return to the menu.
- ^
-